<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加分类</title>
    <link rel="stylesheet" href="/static/lib/layui-v2.5.5/css/layui.css" media="all">
    <script src="/static/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
</head>
<body style="padding-top:10px;">
    <form class="layui-form" action="" method="post">{% csrf_token %}
        <div class="layui-form-item">
            <div class="layui-inline">
              <label class="layui-form-label">分类名称</label>
              <div class="layui-input-inline">
                <input type="text" name="categoryName" placeholder="分类名称" lay-verify="required|account" autocomplete="off" class="layui-input">
              </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
              <button type="submit" class="layui-btn" lay-submit>立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
<script type="text/javascript">
    var info='{{info}}';
		if(info=='ok'){
			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('添加成功')
				});

		}
</script>
</body>
</html>